package service

import "bc/dao"

type department struct {

}
func (t *department)Create(d map[string]interface{}) (bool,int) {
	return dao.Dep.Create(d)
}
func (t *department)Delete(dp_id int) bool {
	return dao.Dep.Delete(dp_id)
}
func (t *department)Update(w map[string]interface{},d map[string]interface{}) bool {
	return dao.Dep.Update(w,d)
}
func (t *department)Find(w map[string]interface{},page int,pageSize int) ([]*dao.Department,int,error){
	d,i,e := dao.Dep.Find(w,page,pageSize)
	return d,i,e
}
func (t *department)First(w map[string]interface{}) (bool, *dao.Department){
	b,v :=dao.Dep.First(w)
	return b,v
}
var Dep = &department{}
